package com.week09.spring_cache.service;

import com.week09.spring_cache.entity.User;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

@CacheConfig(cacheNames = "users")
@Cacheable
public interface UserService {

    User find(int id);

    List<User> list();

}
